package com.zhexinit.proxy.bean;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 
 * ProxyInfo对象结构体
 * @author <a href="mailto:wulei@zhexinit.com" >吴磊</a>
 * @version 1.0.0
 */
public class ProxyInfo {
	public static final Logger LOGGER = LoggerFactory.getLogger(ProxyInfo.class);
	/**
	 * 使用的vps代理的imsi
	 */
	private String imsi;
	/**
	 * 代理的ip
	 */
	private String ip;
	/**
	 * 代理登入时使用的ip及端口号
	 */
	private String ipLog;
	/**
	 * 代理长连接使用的ip及端口号
	 */
	private String ipConnect;
	/**
	 * 代理网络类型
	 */
	private int net;
	/**
	 * 代理所属省份id
	 */
	private int provinceId;
	/**
	 * 代理所属城市id，可能为0
	 */
	private int cityId;
	/**
	 * 代理创建时间
	 */
	private long createTime;
	
	/**
	 * 代理当前正在被使用的次数
	 */
	private Object usedCount;
	/**
	 * 代理总计被使用的次数
	 */
	private Object usedCountLog;
	
//	public static ProxyInfo jsonToBean(JSONObject object){
//		ProxyInfo proxyInfo= new ProxyInfo();
//		proxyInfo.setUsedCount(object.get("usedCount"));
//		proxyInfo.setUsedCountLog(object.get("usedCountLog"));
//		Gson gson = new Gson();
//		gson.fromJson(object, classOfT)
//		return proxyInfo;
//	}
	
	public String getImsi() {
		return imsi;
	}
	public void setImsi(String imsi) {
		this.imsi = imsi;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getIpLog() {
		return ipLog;
	}
	public void setIpLog(String ipLog) {
		this.ipLog = ipLog;
	}
	public String getIpConnect() {
		return ipConnect;
	}
	public void setIpConnect(String ipConnect) {
		this.ipConnect = ipConnect;
	}
	public int getNet() {
		return net;
	}
	public void setNet(int net) {
		this.net = net;
	}
	public int getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(int provinceId) {
		this.provinceId = provinceId;
	}
	public int getCityId() {
		return cityId;
	}
	public void setCityId(int cityId) {
		this.cityId = cityId;
	}
	
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	public Object getUsedCount() {
		return usedCount;
	}
	public void setUsedCount(Object usedCount) {
		this.usedCount = usedCount;
	}
	public Object getUsedCountLog() {
		return usedCountLog;
	}
	public void setUsedCountLog(Object usedCountLog) {
		this.usedCountLog = usedCountLog;
	}
	
	
	
}
